  <div id="ly_foot">
	<ul>
		<li><a href="javascript:history.go(-1);"><img src="__IMG_MOBILE_PATH__/b_1.png" width="25" height="25" />返回</a></li>
		<li><a class="footerNav" data-type="menu" tabid="{$tabId}" url="/index.php?g=User&m=Mobile&a=classify" href="javascript:void(0);"><img src="__IMG_MOBILE_PATH__/b_2.png" width="25" height="25" />菜单</a></li>
		<li><a class="footerNav" href="javascript:void(0);" url="/index.php?g=User&m=Mobile&a=recommend" tabid="{$tabId}" ><img src="__IMG_MOBILE_PATH__/b_3.png" width="25" height="25" />推荐</a></li>
		<li><a class="footerNav" href="javascript:void(0);" url="/index.php?g=User&m=Mobile&a=hotMenu" tabid="{$tabId}" ><img src="__IMG_MOBILE_PATH__/b_4.png" width="25" height="25" />热门</a></li>
        <li><a class="footerNav" data-type="already" href="javascript:void(0);" url="/index.php?g=User&m=Mobile&a=already" tabid="{$tabId}"><img src="__IMG_MOBILE_PATH__/b_5.png" width="25" height="25" />已点</a></li>
	</ul>
</div>
<script>
//点菜按钮触发	added by Tony
function addMenu(menuId){
	if(menuId){
		$.post('index.php/User/Mobile/addMenu/',{'u_id':menuId},function(data){
			if(data.status==1){
				jAlert('点菜成功！','WiFi管家提示您');
			}else{
				jAlert('操作失败！','WiFi管家提示您');
			}
		},'json');
	}
}
//脚部菜单绑定事件	added by Tony
$('.footerNav').click(function(){
	var url = $(this).attr('url');
	var tabId = $(this).attr('tabid');
	if(tabId){
		var parUrl = url+"&tabid="+tabId;
		window.location.href=parUrl;
	}else{
		jConfirm('请您选择桌位。', 'WiFi管家提示您', function(judge) {
			if(judge){
				window.location.href="/index.php?g=User&m=Mobile&a=index";
			}
		});
	}
});
</script>
<script type="text/javascript">
        document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
        window.shareData = {  
           "imgUrl": "{$httpHost}{$shareLogo}", 
            "timeLineLink": "http://ceshi63.com.20080531.com:8090",
            "sendFriendLink": "http://ceshi63.com.20080531.com:8090",
            "weiboLink": "http://ceshi63.com.20080531.com:8090",
            "tTitle": "WiFi点菜宝",
            "tContent": "欢迎您使用【WiFi点菜宝】移动点菜系统，适用手机端和pad端，济南铭讯科技WiFi管家与您同行，让菜单多飞一会！",
            "fTitle": "WiFi点菜宝",
            "fContent": "欢迎您使用【WiFi点菜宝】移动点菜系统，适用手机端和pad端，济南铭讯科技WiFi管家与您同行，让菜单多飞一会！",
            "wContent": "欢迎您使用【WiFi点菜宝】移动点菜系统，适用手机端和pad端，济南铭讯科技WiFi管家与您同行，让菜单多飞一会！" 
        };
        // 发送给好友
        WeixinJSBridge.on('menu:share:appmessage', function (argv) {
            WeixinJSBridge.invoke('sendAppMessage', { 
                "img_url": window.shareData.imgUrl,
                "img_width": "640",
                "img_height": "640",
                "link": window.shareData.sendFriendLink,
                "desc": window.shareData.fContent,
                "title": window.shareData.fTitle
            }, function (res) {
                _report('send_msg', res.err_msg);
            })
        });

        // 分享到朋友圈
        WeixinJSBridge.on('menu:share:timeline', function (argv) {
            WeixinJSBridge.invoke('shareTimeline', {
                "img_url": window.shareData.imgUrl,
                "img_width": "640",
                "img_height": "640",
                "link": window.shareData.timeLineLink,
                "desc": window.shareData.tContent,
                "title": window.shareData.tTitle
            }, function (res) {
                _report('timeline', res.err_msg);
            });
        });

        // 分享到微博
        WeixinJSBridge.on('menu:share:weibo', function (argv) {
            WeixinJSBridge.invoke('shareWeibo', {
                "content": window.shareData.wContent,
                "url": window.shareData.weiboLink,
            }, function (res) {
                _report('weibo', res.err_msg);
            });
        });
        }, false)
</script>
</body>
</html>
